From d4c3d52fdde5fef8f72c1f572f1ce7c70da86b23 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 19 Sep 2024 15:55:38 -0700 Subject: progress on accounts --- src/routes/(app)/[username]/receive/+page.svelte | 343 +++++++++++++++++++++++ 1 file changed, 343 insertions(+) create mode 100644 src/routes/(app)/[username]/receive/+page.svelte (limited to 'src/routes/(app)/[username]') diff --git a/src/routes/(app)/[username]/receive/+page.svelte b/src/routes/(app)/[username]/receive/+page.svelte new file mode 100644 index 00000000..7d7958f1 --- /dev/null +++ b/src/routes/(app)/[username]/receive/+page.svelte @@ -0,0 +1,343 @@ + + +
+ {#if $showQr} +
+ + {txt} + +
+ {:else} +
+ {txt} +
+ {/if} + + {#each invoice.items as i} +
+
{i.quantity}
+
+ {i.name} +
+
+ {f(i.price * i.quantity, currency)} +
+
+ {sat(btc(i.price * i.quantity, rate))} +
+
+ {/each} + + {#if amount > 0} +
+
+ {f(amountFiat, currency)} + + {#if tip} + + +{f(tip * (rate / sats), currency)} + + {/if} +
+
+ ⚡️{`${s(amount)}`} + + {#if tip} + + +⚡️{s(tip)} + + {/if} +
+
+ {/if} + +
+ + + {#if user?.id === invoice?.user?.id} + + {:else} + + + + {/if} + +
+ +
+
+ + {#if account_id === user.id} +
+ + + + + + + {#if user?.id === invoice?.user?.id} + + + + {/if} +
+ + {#if type === types.liquid} +
+
+ {$t("payments.onlyLbtc")} + L-BTC, + {$t("payments.dontDeposit")} +
+
+ {/if} + {/if} +
+ +{#if settingAmount} +
+
+
+ +
+ + +
+ + +
+
{$t("payments.amountPrompt")}
+ +
+
+
+{/if} + + -- cgit v1.2.3